<?php
/* @var $this PartyController */
/* @var $model Party */
/* @var $form CActiveForm */
?>

<div class="search" style="height:70px">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<?php echo $form->label($model,'crowd_id'); ?>
	<?php echo $form->dropDownList($model,'crowd_id',CHtml::listData(Crowd::model()->findAll(), 'id', 'title'),
                        array('empty'=>'-全部-')); ?> 

	<?php echo $form->label($model,'username'); ?>
	<?php echo $form->textField($model,'username',array('size'=>5,'maxlength'=>5,'class'=>'input')); ?>

	<?php echo $form->label($model,'phone'); ?>
	<?php echo $form->textField($model,'phone',array('size'=>11,'maxlength'=>11,'class'=>'input')); ?>
    
        <label for="Party_is_children">是否携带儿童</label>                        
        <select name="is_children">
            <option value>全部</option>
            <option value="1">是</option>
            <option value="2">否</option>
        </select>     
    
	<?php echo $form->label($model,'line_id'); ?>    
	<?php 
               
            if(isset($_GET['detail_id'])){
                $detail_id =$_GET['detail_id'];
                echo '<input style="display: none;" name="detail_id" value="'.$detail_id.'"/>';
                echo $form->dropDownList($model,'line_id',CHtml::listData(LineDetail::model()->findAll('ad_id = '.$detail_id), 'id', 'position.address'),
                                array(
                                'prompt'=>'---------全部---------'));
            }  else {
                echo $form->dropDownList($model,'line_id',CHtml::listData(LineDetail::model()->findAll(), 'id', 'position.address'),
                                array(
                                'prompt'=>'---------全部---------'));                
            }   
                ?>  
                
        <?php echo $form->label($model,'is_float'); ?>
	<?php echo $form->dropDownList($model,'is_float',array('0'=>'未审核','1'=>'已审核'),
                                array('empty'=>'-全部-')); ?>  
        <label for="Party_is_recommend">是否有推荐人</label>                        
        <select name="is_recommend">
            <option value>全部</option>
            <option value="1">是</option>
            <option value="2">否</option>
        </select>    
	<?php echo $form->label($model,'recommend'); ?>
	<?php echo $form->textField($model,'recommend',array('size'=>20,'maxlength'=>20,'class'=>'input')); ?>
        
        <?php echo $form->label($model,'is_from'); ?>
	<?php echo $form->dropDownList($model,'is_from',array('0'=>'未来','1'=>'已来','3'=>'已取消'),
                                array('empty'=>'-全部-')); ?> 


	<?php echo CHtml::submitButton('查 询',array('class'=>'but')); ?>

<?php $this->endWidget(); ?>

</div><!-- search-form -->